package com.example.securitylianxi.exception;


import com.example.securitylianxi.domain.AjaxResult;
import io.jsonwebtoken.ExpiredJwtException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionsHandler {

    @ExceptionHandler({ExpiredJwtException.class})
    public AjaxResult expiredJwtException(){
        System.out.println("???");
        return AjaxResult.error(401, "登陆过期，请重新登陆");
    }
}
